# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=docparser
pkgver=1.0.3
pkgrel=1
pkgdesc='A document parser library ported from document2html'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/docparser"
license=('GPL3')
depends=('poppler')
makedepends=('qt5-tools')
groups=('deepin')
source=("https://github.com/linuxdeepin/docparser/archive/$pkgver/$pkgname-$pkgver.tar.gz")
b2sums=('f6f947de248696ecde5fe3f59fb14b402f2be1ed587350325f53fb84d923948e18aabe0c34da9a71f44497c3c5f2105298726d6e7b4765c67ef767f99754e081')

build() {
  cd docparser-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd docparser-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
